// pages/branch/branch.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
      scoreList:[
        {
          name: '目前总分',
          socre: '30'
        },
        {
          name: '思想先进',
          socre: '20'
        },
        {
          name: '专业过硬',
          socre: '18'
        },
        {
          name: '家族のために',
          socre: '2000'
        },
      ],

      top:[
        {
          name:'Kiana',
          score:'102058'
        },
        {
          name: 'Himeko',
          score: '101930'
        },
        {
          name: 'Teriri',
          score: '101930'
        },
        {
          name: 'Yea',
          score: '101909'
        },
        {
          name: 'Kalean',
          score: '101898'
        },
        {
          name: 'Fuhua',
          score: '101898'
        },
        {
          name: 'Bunny',
          score: '101898'
        },
        {
          name: 'Bunny',
          score: '101898'
        },
        {
          name: 'Bunny',
          score: '101898'
        },
      ],
      getitems:[
        {
          namee:'舰团委托',
          scoree:'+30'
        },
        {
          namee: '每日登陆',
          scoree: '+5'
        },
        {
          namee: '早睡早起',
          scoree: '+50'
        },
        {
          namee: 'cs大地球',
          scoree: '+30000'
        },
      ],
      active:0,
      navList:[
        {
          name:'领取积分',
          url:'/pages/getscore/getscore',
          icon:'/static/images/user/userHead.jpg'
        },
        {
          name: '积分规则',
          url: '/pages/stulife/stulife',
          icon: '/static/images/user/userHead.jpg'
        },
        {
          name: '更换肖像',
          url: '/pages/stulife/stulife',
          icon: '/static/images/user/userHead.jpg'
        },
        {
          name: '积分奖励',
          url: '/pages/stulife/stulife',
          icon: '/static/images/user/userHead.jpg'
        },
        {
          name: '分享肖像',
          url: '/pages/stulife/stulife',
          icon: '/static/images/user/userHead.jpg'
        }

      ]
        
    },
    //启用分享按钮
    handlerShare(){
        wx.showShareMenu({
            withShareTicket: true,
            success:function(){
                console.log("成功分享")
            },
            fail:function(){
                console.log("分享取消")
            },
            complete:function(){
                console.log("成功完成")
            }
          }) 


    },
    myswitchTab (){
        
        wx.switchTab({
            url: '/pages/user/user'
          })
    },
    myreLaunch (){
        console.log('myreLaunch')
    },
    myredirectTo (){
        console.log('myredirectTo')
    },
    mynavigateTo (){
        console.log('mynavigateTo')
        wx.navigateTo({
            url: '/pages/test/test'
          })
    },
    mynavigateBack (){
        console.log('mynavigateBack')
    },

  
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
      
    },
  
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {
  
    },
  
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
  
    },
  
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {
  
    },
  
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {
  
    },
  
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {
  
    },
  
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {
  
    },
  
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {
      
    }
    
  })